* {
  -webkit-touch-callout: none;
}

body,
html,
#app {
  margin: 0;
  padding: 0;
  background: #FAFAFA;
  height: 100%;
}

:-moz-placeholder {
  color: #ccc;
}

::-moz-placeholder {
  color: #ccc;
}

::-webkit-textarea-placeholder {
  color: #ccc;
}

:-ms-textarea-placeholder {
  color: #ccc;
}

input,
textarea,
select {
  -webkit-appearance: none;
  font-size: 1.2rem;
  border: 0;
  background: transparent;
  font-family: "黑体", "Microsoft YaHei", "Helvetica Neue", Helvetica, STHeiTi, sans-serif;
  outline: none;
}

input,
a,
span {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden
}

.clearfix {
  zoom:1
}
.textRinght {
  text-align: right;
}
.layui-form {
  background: #FFF;
  height: 100%;
  .homePage,.chatPage,.aboutMe {
    position: relative;
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    /* Safari */
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling:touch;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }
  .chatPage {
    .chat-square {
      margin: 0.25rem 0.25rem 0 0.25rem;
      padding-bottom: 0.25rem;
      text-align: left;
      .head-portrait {
        display:inline-block;
        float:left;
        img {
          width:1.2rem;
          height: 1.2rem;
        }
      }
      .chat-content {
        display: inline-block;
        position: relative;
        float: left;
        width: 6rem;
        margin-left: 20px;
        .nickName { //名字
          height: 0.5rem;
          font-size:0.375rem;
          color: rgba(130, 126, 126, 0.8);
        }
        .triangle { //三角
          position: absolute;
          left: -0.25rem;
          top: 0.625rem;
          width: 0;
          height: 0;
          border-top: 0.2rem solid transparent;
          border-right: 0.3rem solid #EEE;
          border-bottom: 0.2rem solid transparent;
        }
        .chat-text { //内容
          border: solid 1px #EEE;
          border-radius: 5px;
          background: #EEE;
          font-size:0.375rem;
          // font-size: 0.186667rem;
          padding:10px;
        }
        .boxOption { // 操作栏
          position: absolute;
          display: none;
          width: 4rem;
          height: 0.6rem;
          line-height: 0.6rem;
          top: -0.25rem;
          left: 1rem;
          text-align: center;
          background: #EEE;
          border-radius: 2px;
          font-size: 12pt;
          cursor: pointer;
          &.show {
            display: block;
          }
          i {
            position: absolute;
            left: -10px;
            top: 6px;
            width: 0;
            height: 0;
            border-top: 8px solid transparent;
            border-right: 12px solid #EEE;
            border-bottom: 8px solid transparent;
          }
          .moreEvent {
            position: absolute;
            display: none;
            top: -30px;
            width: 65px;
            box-shadow: 0px 0px 7px #888888;
            a {
              display: block;
              text-align: left;
              margin-left: 10px;
              height: 25px;
              line-height: 25px;
              font-size: 12pt;
            }
            &.webEvent {
              top:-30px;
              .copyInfo {
                cursor:pointer;
                background: #FFF;
              }
              a {
                margin-left: 0;
                text-align: center;
              }
            }
          }
        }
      }
      &.myself {
        .head-portrait {
          float:right;
        }
        .chat-content {
          float:right;
          margin: 0 20px 0 0;
          .nickName {
            height: 0.5rem;
            // font-size: 14px;
            color: rgba(130, 126, 126, 0.8);
            text-align: right;
          }
          .triangle {
            left: 99%;
            top: 0.625rem;
            border-right:none;
            border-left: 0.3rem solid #6E91F5;
          }
          .chat-text {            
            background:#6E91F5;
            color:#FFF;
          }
          .collection {
            right: 50px;
            left: -30px;
            background: #6E91F5;
            .moreEvent {
              right:0;
            }
          }
        }
      }
    }
  }
  .chatFoot {
    height:0.75rem;
    padding: 0.125rem 0;
    display: -webkit-box;
    display: -webkit-flex;
    /* Safari */
    display: -ms-flexbox;
    display: flex;
    .returnAdd {
      width: 1.0rem;
      text-align: center;
      .icon-add {
        display: inline-block;
        cursor: pointer;
        width: 0.5rem;
        height: 0.5rem;
        margin-top: 0.1rem;
        background: url(../img/ic_plus.png) no-repeat center center;
        background-size: cover;
      }
    }
    .el-textarea {
      -webkit-box-flex:1;
      -webkit-flex:1;
      flex:1;
    }
    .sendBtn {
      margin: 0 0.25rem;
    }
  }
  .topOperation {
    height:1rem;
    display: -webkit-box;
    display: -webkit-flex;
    /* Safari */
    display: -ms-flexbox;
    display: flex;
    background-color: #FAFAFA;
    .returnBack {
      width:1.0rem;
      height:100%;
      .icon-retrun{
        display: inline-block;
        cursor: pointer;
        margin: 0.15rem .3rem;
        width: 0.4rem;
        height: 0.7rem;
        background: url(../img/ic_back.png) no-repeat center center;
      }
    }
    .sreach-box {
      text-align: center;
      -webkit-box-flex:1;
      -webkit-flex:1;
      flex:1;
      line-height: 1rem;
      padding: 0 .5rem 0 0.1rem;
      .el-input__inner {
        height:0.65rem;
        border-radius: 0.375rem;
      }
      .el-icon-circle-close {
        font-size: .45rem;
        line-height: 1.3rem;
        margin-right: 0.3rem;
      }
    }
    .sreach-header {
      text-align: center;
      -webkit-box-flex:1;
      -webkit-flex:1;
      flex:1;
      line-height: 1rem;
      text-indent: -1rem;
    }
  }
  .layui-content {
    position:relative;
    -webkit-box-flex:1;
    -webkit-flex:1;
    flex:1;
    overflow:hidden;
    -webkit-overflow-scrolling:touch;
    // margin-bottom: 50px;
    .content-box {
      margin: 20px auto;
      width: 600px;
      .content-text {
        color: #999999;
        font-size: 12pt;
      }
      .showTime {
        width: 3.75rem;
        height: 0.625rem;
        line-height: 0.625rem;
        border-radius: 5px;
        margin: auto;
        background: #EEE;
        color: #999;
        font-size: 0.3rem;
        text-align: center;
        font-family: '微软雅黑';
      }
      .showWrapper {
        position: relative;
        margin: 20px auto;
        width: 600px;
        height: 350px;
        img {
          height: 100%;
          width: 100%;
          border-radius: 5px;
          z-index: -1;
        }
        .showText {
          display: inline-block;
          position: absolute;
          width: 100%;
          height: 40px;
          line-height: 40px;
          bottom: 0;
          left: 0;
          z-index: 1;
          cursor: pointer;
          span {
            display: inline-block;
            position: absolute;
            left: 0;
            bottom: 0;
            height: 100%;
            width: 100%;
            background: #000;
            opacity: .4;
            z-index: -1;
          }
          a {
            display: inline-block;
            width: 100%;
            text-align: center;
            color: #FFF;
            z-index: 9;
            opacity: 1;
          }
        }
        .layui-row {
          font-size: 15pt;
          &.input-row {
            margin-bottom: 25px;
          }
          &.preclse {
            margin-top: 60%;
            a {
              display: inline-block;
              text-align: center;
              background: #6E91F5;
              color: #FFF;
              width: 400px;
              height: 50px;
              line-height: 50px;
              font-size: 18pt;
              border-radius: 5px;
              cursor: pointer;
              margin: 0 10px;
            }
          }
          .name {}
          .content {
            height: 30px;
            line-height: 30px;
            padding-left: 5px;
            border-width: 1px;
            border-style: solid;
            background-color: #fff;
            border-radius: 3px;
            border-color: #DCDCDC;
            outline: 0;
            -webkit-appearance: none;
            transition: all .3s;
            -webkit-transition: all .3s;
            box-sizing: border-box;
          }
          .icon {
            color: #DCDCDC;
            text-align: center;
          }
        }
      }
      &:first-child {
        padding-top: 0.25rem
      }
    }
    .personalWrapper {
      margin: 40px;
      .input-row {
        height: 40px;
        line-height: 40px;
        border-bottom: solid 1px #EEEEEE;
        margin-bottom: 20px;
        padding-bottom: 10px;
        .name {
          font-size: 15pt;
          color: #333;
          text-align: right;
        }
        div {
          text-align: right;
          padding-right: 10px;
          a {
            cursor: pointer;
            font-size: 15pt;
            color: #999999;
          }
        }
        .returnstep {
          display: inline-block;
          width: 30px;
          height: 40px;
          vertical-align: middle;
          background: url(../img/ic_back.png) no-repeat center center;
          transform: rotate(180deg);
          -ms-transform: rotate(180deg);
          -moz-transform: rotate(180deg);
          -webkit-transform: rotate(180deg);
          -o-transform: rotate(180deg);
        }
      }
    }
    .OrdinaryBox {
      background: #FFF;
      text-align: center;
      margin-bottom: 10px;
      overflow-x: hidden;
      .OrdinaryWrapper {
        position: relative;
        padding: 20px 10px;
        .purpose-btn {
          display: inline-block;
          cursor: pointer;
          height: 40px;
          line-height: 40px;
          width: 100px;
          margin: 0 10px;
          text-align: center;
          background: #F4F4F4;
          color: #999999;
          &.curr {
            background: #6E91F5;
            color: #FFF !important;
          }
        }
        .input-row {
          height: 40px;
          line-height: 40px;
          border-bottom: solid 1px #EEEEEE;
          margin-bottom: 20px;
          padding-bottom: 10px;
          .name {
            font-size: 15pt;
            color: #333;
            text-align: right;
          }
          select,
          input {
            border: none;
            outline: none;
            font-size: 15pt;
            height: 40px;
            line-height: 40px;
            text-indent: 10px;
          }
          .isVip {
            display: none;
            color: #8c8888;
          }
          .purpose-btn {
            &.btn-md {
              text-align: center;
              width: 400px;
              height: 50px;
              line-height: 50px;
              font-size: 18pt;
              border-radius: 5px;
            }
            &.btn-hide {
              display: none;
            }
          }
        }
        &.noBorder {
          .input-row {
            border: none;
            margin-bottom: 0;
            &.hasborder {
              border-bottom: solid 1px #EEEEEE;
            }
            a,
            label {
              font-size: 18pt;
              text-align: left;
              color: #999999;
            }
            .name {
              text-align: left;
              color: #333333;
            }
            .newName {
              font-size: 18pt;
              text-align: left;
              color: #333333;
            }
            a {
              color: #6E91F5;
              cursor: pointer;
            }
            &.clearfix {
              line-height: inherit;
              height: inherit;
            }
            &.collection {
              text-align: left;
              font-size: 15pt;
            }
            .adminBox {
              padding-top: 10px;
              text-align: right;
            }
            .adminBtn {
              display: inline-block;
              margin: 5px;
              width: 100px;
              height: 30px;
              line-height: 30px;
              text-align: center;
              color: #333;
              border: solid 1px #999;
              border-radius: 30px;
              font-size: 15pt;
              &.resultCollect {
                float: right;
              }
            }
            .adminBtn[disabled="disabled"] {
              opacity: 0.5;
              cursor: not-allowed;
            }
          }
        }
        .delBtn {
          position: absolute;
          top: 0;
          right: -150px;
          height: 100%;
          width: 150px;
          background-color: #E60012;
          color: #FFF;
          line-height: 260px;
          font-size: 18pt;
          cursor: pointer;
        }
      }

      &:last-child {
        margin: auto;
      }
    }
    .layui-form-onswitch {
      background-color: #97b2fe;
      border-color: #97b2fe;
    }
    &.margin-sreach {
      top: 60px;
      margin: 20px auto;
      width: 600px;
    }
    &.Precise-search {
      top: 60px;
      margin: auto;
      width: 600px;
    }
    &.info-square {
      background: #FFF;
      width: 600px;
      margin: auto;
      .chat-square {
        margin: 25px;
        .head-portrait {
          display: inline-block;
          float: left;
          img {
            width: 48px;
            height: 48px;
          }
        }
        .chat-content {
          display: inline-block;
          position: relative;
          float: left;
          width: 400px;
          margin-left: 20px;
          .nickName {
            height: 0.5rem;
            font-size: 14px;
            color: rgba(130, 126, 126, 0.8);
          }
          .triangle {
            position: absolute;
            // left: 0rem;
            top: 0.625rem;
            width: 0;
            height: 0;
            border-top: 0.2rem solid transparent;
            border-right: 0.3rem solid #EEE;
            border-bottom: 0.2rem solid transparent;
          }
          .chat-text {
            border: solid 1px #EEE;
            border-radius: 5px;
            background: #EEE;
            font-size: 15pt;
            padding: 10px;
          }
          .collection {
            position: absolute;
            display: none;
            width: 25px;
            height: 20px;
            bottom: 0;
            right: -30px;
            text-align: center;
            line-height: 12px;
            background: #EEE;
            border-radius: 2px;
            font-size: 12pt;
            cursor: pointer;
            i {
              position: absolute;
              left: -10px;
              top: 6px;
              width: 0;
              height: 0;
              border-top: 8px solid transparent;
              border-right: 12px solid #EEE;
              border-bottom: 8px solid transparent;
            }
            .moreEvent {
              position: absolute;
              display: none;
              top: -30px;
              width: 65px;
              box-shadow: 0px 0px 7px #888888;
              a {
                display: block;
                text-align: left;
                margin-left: 10px;
                height: 25px;
                line-height: 25px;
                font-size: 12pt;
              }
              &.webEvent {
                top: -30px;
                .copyInfo {
                  cursor: pointer;
                  background: #FFF;
                }
                a {
                  margin-left: 0;
                  text-align: center;
                }
              }
            }
          }
        }
        &.itsme {
          .head-portrait {
            float: right;
          }
          .chat-content {
            float: right;
            margin: 0 20px 0 0;
            .nickName {
              height: 20px;
              font-size: 14px;
              color: rgba(130, 126, 126, 0.8);
              text-align: right;
            }
            .triangle {
              left: 99%;
              top: 25px;
              border-right: none;
              border-left: 12px solid #6E91F5;
            }
            .chat-text {
              background: #6E91F5;
              color: #FFF;
            }
            .collection {
              right: 0;
              left: -30px;
              background: #6E91F5;
              .moreEvent {
                right: 0;
              }
            }
          }
        }
      }
    }
    &.homeEdit {
      text-align: center;
      p:last-child {
        padding-bottom: 0.75rem;
      }
    }
    &.baseModel {
      .radioRow {
        padding-top: 0.5rem;
        text-align: center;
      }
    }
    &.aboutCenter {
      .aboutWp {
        // margin: 0.5rem;
      }
      .returnstep {
        display: inline-block;
        width: 30px;
        height: 40px;
        vertical-align: middle;
        background: url(../img/ic_back.png) no-repeat center center;
        transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        -o-transform: rotate(180deg);
      }
    }
  }
  .aboutMe {
    .about-header {
      width: 100%;
      height: 5.0rem;
      background: url("../img/pic_dingbu@3x.png") no-repeat center center;
      background-size: cover;
      margin: auto;
      .header-circular {
        position: relative;
        background: url("../img/ic_touxiangbeijing@2x.png") no-repeat center center;
        width: 3.25rem;
        height: 3.25rem;
        margin: auto;
        bottom: -50%;
        left: 50%;
        margin-left: -1.625rem;
        .header-personal {
          position: relative;
          height: 1.75rem;
          width: 1.5rem;
          left: 50%;
          top: 50%;
          margin-top: -36px;
          margin-left: -33px;
        }
        .personal-img {
          position: absolute;
          height: 2.7rem;
          width: 2.7rem;
          left: 0.2rem;
          top: 0.2rem;
          border-radius: 100px;
        }
        .personal-name {
          position: absolute;
          width: 2.7rem;
          left: 50%;
          margin-left: -1.35rem;
          bottom: -25px;
          text-align: center;
        }
        input {
          opacity: 0;
          position: absolute;
          height: 2.75rem;
          width: 2.75rem;
          left: 0.2rem;
          top: 0.2rem;
          border-radius: 100px;
          z-index: 999;
        }
      }
    }
  }
}

.login-body {
  .login-form {
    position: relative;
    left: 0;
    top: 0;
    padding: 2.75rem 0 1.25rem;
    min-height: 100%;
    box-sizing: border-box;
    .login-main {
      width: 9.375rem;
      margin: 0 auto;
      box-sizing: border-box;
      .top-logo {
        text-align: center;
        margin-bottom: 0.75rem;
        .logo {
          i {
            height: 0.75rem;
            width: 0.825rem;
            background-size: 0.825rem 0.75rem;
            position: relative;
            top: 5px;
          }
          span {
            letter-spacing: 0.05rem;
            color: #007fff;
            font: 700 24px/33px "MicrosoftYaHei";
            padding-left: 0.275rem;
          }
        }
        .top-tips {
          font: 400 14px/47px "MicrosoftYaHei";
          letter-spacing: 1px;
          color: #555;
        }
      }
      .login-change {
        text-align: center;
        height: 1.0rem;
        line-height: 1.0rem;
        border: solid 1px #dcdfe6;
        border-radius: 5px;
        .change-button {
          display: inline-block;
          width: 50%;
          float: left;
          cursor: pointer;
          font-size: 14px;
        }
        .change-this {
          color: #fff;
          background-color: #409eff;
          border-color: #409eff;
          box-shadow: -1px 0 0 0 #409eff;
        }
      }
      .write-form {
        padding: 20px 0 0;
        text-align: center;
        .form-lists {
          height: 44px;
          padding-top: 20px;
          border-bottom: 1px solid #dddddd;
          .icon {
            float: left;
            display: block;
            width: 20px; // ie9兼容问题
            height: 20px;
            padding: 10px 35px 0 20px;
            color: #007fff;
            font-size: 20px;
          }
          input {
            float: left;
            display: block;
            border: 0;
            height: 42px;
            width: 323px;
            font: 400 16px/42px "MicrosoftYaHei";
            color: #999999;
            outline: 0;
          }
        }
        .te {
          //特殊验证码
          position: relative;
          margin-right: 144px;
          input {
            width: 181px;
          }
          .verifi-img {
            height: 44px;
            width: 120px;
            position: absolute;
            right: -144px;
            ;
            bottom: 0;
          }
        }
        .sub {
          display: inline-block;
          height: 38px;
          line-height: 38px; // padding: 0 18px;
          color: #fff;
          white-space: nowrap;
          text-align: center;
          font-size: 14px;
          border: none;
          border-radius: 2px;
          cursor: pointer;
          width: 100%;
          background-color: #6E91F5;
        }
        .layui-form-item {
          position: relative;
          .user-login-icon {
            position: absolute;
            left: 1px;
            top: 1px;
            width: 38px;
            line-height: 36px;
            text-align: center;
            color: #d2d2d2;
          }
          .layui-input {
            height: 38px;
            line-height: 38px;
            padding-left: 38px;
          }
          .layui-form-checkbox {
            float: left;
          }
          .layadmin-link {
            float: right;
            margin-top: 7px;
            color: #409eff;
          }
          &.notesTip {
            text-align: left;
            color: #8c8888;
          }
        }
        &.login-form-register {
          // display: none;
        }
      }
      .remberPsd {
        display: inline-block;
        width: 18px;
        height: 18px;
      }
    }
  } //  底部
  .footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    line-height: 30px;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    color: rgba(0, 0, 0, .5);
    p {}
  }
  @media screen and (max-width:768px) {
    .login-body {
      .footer {
        padding: 10px
      }
    }
  }
}

.layui-footer {
  height: 2.025rem;
  /*no*/
  z-index: 99;
  .footer-center {
    position: relative;
    width: 60%;
    margin: auto;
    a {
      display: inline-block;
      cursor: pointer;
      width: 1.25rem;
      height: 1.25rem;
      margin: 0.125rem 0;
      background-repeat: no-repeat;
      background-size: 100% 100%;
      background-position: center center;
    }
    .returnIndex {
      float: left;
      background-image: url('../img/ic_shouyeblack@2x.png');
    }
    .returnIndex.curr,
    .returnIndex:hover {
      background-image: url('../img/ic_shouye@2x.png');
    }
    .chat {
      position: absolute;
      left: 50%;
      top: 50%;
      margin: -1rem 0 0 -1rem;
      background-image: url('../img/ic_qipao@2x.png');
      width: 2.0rem;
      height: 2.0rem;
      z-index: 99;
    }
    .aboutMe {
      float: right;
      background-image: url('../img/ic_me@2x.png');
    }
    .aboutMe.curr,
    .aboutMe:hover {
      background-image: url('../img/ic_meblack@2x.png');
    }
    .returnAdd {
      display: inline-block;
      float: left;
      width: 40px;
      .icon-add {
        display: inline-block;
        cursor: pointer;
        margin: 5px;
        width: 30px;
        height: 30px;
        background: url(../img/ic_plus.png) no-repeat center center;
      }
    }
    .inputBox {
      display: inline-block;
      float: left;
      height: 38px;
      width: 500px;
      border: solid 1px #EEE;
      border-radius: 15px;
      background: #FFF;
      .inputVal {
        border: none;
        padding: 0;
        outline: 0;
        height: 36px;
        margin-left: 10px;
        width: 300px;
      }
      .textVal {
        border: none;
        padding: 0;
        outline: 0;
        height: 100%;
        line-height: 36px;
        margin: 0 10px;
        width: 480px;
        resize: none;
      }
    }
    .sendBtn {
      display: inline-block;
      cursor: pointer;
      margin: 12px;
      width: 30px;
      font-size: 14px;
    }
  }
}
